package com.ewzj.bigdata.mvp.model.entity.reqbeans;

import java.util.List;

/**
 * Author:zhangjing
 * Time:2018/3/2  上午11:06
 * Name: this is PageBean
 * Email:zhangjingworkmol@163.com
 */

public class ReqPageBean {

    /**
     * page_index : 1
     * page_num : 10
     * query : {"id":0,"filter_id":[0]}
     */

    private int page_index;
    private int page_num;
    private QueryEntity query;

    public int getPage_index() {
        return page_index;
    }

    public void setPage_index(int page_index) {
        this.page_index = page_index;
    }

    public int getPage_num() {
        return page_num;
    }

    public void setPage_num(int page_num) {
        this.page_num = page_num;
    }

    public QueryEntity getQuery() {
        return query;
    }

    public void setQuery(QueryEntity query) {
        this.query = query;
    }

    public static class QueryEntity {
        /**
         * id : 0
         * filter_id : [0]
         */

        private String id;
        private List<String> filter_id;
        private int category_id;
        private String keywords;

        public int getCategory_id() {
            return category_id;
        }

        public void setCategory_id(int category_id) {
            this.category_id = category_id;
        }

        public String getKeywords() {
            return keywords;
        }

        public void setKeywords(String keywords) {
            this.keywords = keywords;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public List<String> getFilter_id() {
            return filter_id;
        }

        public void setFilter_id(List<String> filter_id) {
            this.filter_id = filter_id;
        }
    }

    public ReqPageBean(int page_index, int page_num,String id) {
        this.page_index = page_index;
        this.page_num = page_num;
        QueryEntity queryEntity=new QueryEntity();
        queryEntity.setId(id);
        this.setQuery(queryEntity);
    }

    public ReqPageBean(int page_index, int page_num) {
        this.page_index = page_index;
        this.page_num = page_num;
    }
}
